<div id="goods-spec" class='goods-spec' >
      <h4 class='spec-tip' style="width:272px; float:left"><em> <{if $SelectSpecValue.selected}>
          <{t}>您选择了：<{/t}>
          <{else}>
          <{t}> 请选择：<{/t}>
          <{/if}> </em> <span><{$SelectSpecValue.value}></span> </h4>
   
      <div id='view-products-list' ><a href='javascript:void(0)' onclick="new Event(event).stop();$('goods-products-list').fireEvent('pop')"><{t}>规格列表<{/t}></a></div>
  <!--flat-->
  <input type='hidden' name='goods[product_id]' value='<{$goods.product_id}>' disabled='true'/>
  <div class="speci" >
   <{foreach from=$goods.spec key=key item=goodsFlatSpecDesc}>
    <{if $goodsFlatSpecDesc.spec_show_type != 'flat'}><{assign var=hasSelSpec value='true'}><{continue}><{/if}>
    <div class='spec-item specItem'>
    <label><span><em><{$goodsFlatSpecDesc.spec_name}></em>：</span></label>
    <div class="rightdiv">
    <ul>
          <{foreach from=$goodsFlatSpecDesc.option key=skey item="subDesc"}>
          <{if $goods.used_spec.$skey}>
          <{if $goodsFlatSpecDesc.display!="block"}>
          <li> <a href="<{link app=b2c ctl=site_product act=index arg0=$goods.goods_id arg1=$subDesc.spec_goods_images}>" specvid="<{$skey}>" specid="<{$key}>" > <{if $goodsFlatSpecDesc.spec_type=='text'}> <span><nobr><{$subDesc.spec_value}></nobr></span> <{else}> <img src="<{if $subDesc.spec_image}><{$subDesc.spec_image|storager}><{else}><{$spec_default_pic|storager}><{/if}>"  alt="<{$subDesc.spec_value}>" title="<{$subDesc.spec_value}>" width="<{$specimagewidth}>" height="<{$specimageheight}>"> <{/if}> <i title='<{t}>点击取消选择<{/t}>'>&nbsp;</i> </a> </li>
          <{/if}>
          <{/if}>
          <{/foreach}>
        </ul></div>
    </div>
    <{/foreach}>
  </div>
  <!--<table width='100%'>
    <{foreach from=$goods.spec key=key item=goodsFlatSpecDesc}>
    <{if $goodsFlatSpecDesc.spec_show_type != 'flat'}><{assign var=hasSelSpec value='true'}><{continue}><{/if}>
    <tr class='spec-item specItem'>
      <td style="width:10%; white-space:nowrap;padding-right:10px;vertical-align:middle;"><span><em><{$goodsFlatSpecDesc.spec_name}></em>：</span></td>
      <td><ul>
          <{foreach from=$goodsFlatSpecDesc.option key=skey item="subDesc"}>
          <{if $goods.used_spec.$skey}>
          <{if $goodsFlatSpecDesc.display!="block"}>
          <li> <a href="<{link app=b2c ctl=site_product act=index arg0=$goods.goods_id arg1=$subDesc.spec_goods_images}>" specvid="<{$skey}>" specid="<{$key}>" > <{if $goodsFlatSpecDesc.spec_type=='text'}> <span><nobr><{$subDesc.spec_value}></nobr></span> <{else}> <img src="<{if $subDesc.spec_image}><{$subDesc.spec_image|storager}><{else}><{$spec_default_pic|storager}><{/if}>"  alt="<{$subDesc.spec_value}>" title="<{$subDesc.spec_value}>" width="<{$specimagewidth}>" height="<{$specimageheight}>"> <{/if}> <i title='<{t}>点击取消选择<{/t}>'>&nbsp;</i> </a> </li>
          <{/if}>
          <{/if}>
          <{/foreach}>
        </ul></td>
    </tr>
    <{/foreach}>
  </table>-->
  <!--flat-->
  <{if $hasSelSpec}>
  <div class='spec-item'>
    <ul class='clearfix'>
      <{foreach from=$goods.spec key=selKey item=goodsSelSpecDesc}>
      <{if $goodsSelSpecDesc.spec_show_type != 'select'}><{continue}><{/if}>
      <{foreach from=$goods.spec[$selKey].value key=sSelKey item="subDesc"}>
      <{if $subDesc.selected}>
      <{assign var='selectValue' value=$subDesc.spec_value}>
      <{/if}>
      <{/foreach}>
      <{assign var='__cs' value=$___b2c='请选择'|t:'b2c'}>
      <li class="handle <{if $selectValue}>selected<{/if}>"><em><{$goodsSelSpecDesc.spec_name}></em>： <span><{if $selectValue|trim == ''}><{$selectValue}><{else}><{$__cs}><{/if}></span> <{assign var="selectValue" value=' '}> </li>
      <{/foreach}>
      <{foreach from=$goods.spec key=selKey item=goodsSelSpecDesc}>
      <{if $goodsSelSpecDesc.spec_show_type != 'select'}><{continue}><{/if}>
      <li class="content specItem">
        <ul>
          <{foreach from=$goodsSelSpecDesc.option key=sSelKey item="subDesc"}>
          <li> <a href="<{link app=b2c ctl=site_product act=index arg0=$goods.goods_id arg1=$subDesc.spec_goods_images}>" specvid="<{$sSelKey}>" specid="<{$selKey}>"> <{if $goodsSelSpecDesc.spec_type=='text'}> <span><{$subDesc.spec_value}></span> <{else}> <img src="<{if $subDesc.spec_image}><{$subDesc.spec_image|storager}><{else}><{$spec_default_pic|storager}><{/if}>" style='border:1px #ccc solid' alt="<{$subDesc.spec_value}>" title="<{$subDesc.spec_value}>" width="<{$specimagewidth}>" height="<{$specimageheight}>"> <{/if}> <i title='<{t}>点击取消选择<{/t}>'>&nbsp;</i> </a> </li>
          <{/foreach}>
        </ul>
      </li>
      <{/foreach}>
    </ul>
  </div>
  <{/if}> </div>
